﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DbManager.Mapping
{
    public class ObjectMapper
    {

        private readonly List<MemberMapper> _members = new List<MemberMapper>();

        private string[] _fieldNames;
        public string[] FieldNames
        {
            get
            {
                if (_fieldNames == null)
                {
                    _fieldNames = new string[_members.Count];

                    for (int i = 0; i < _fieldNames.Length; i++)
                    {
                        _fieldNames[i] = _members[i].Name;
                    }
                }

                return _fieldNames;
            }
        }
    }
}
